package com.gaofeng.day14;

import java.util.Scanner;

public class demo03 {
    public static void main(String[] args) {
        // 请输入一个字符串
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入一个字符串");

        int money = sc.nextInt();

        String str = "";
        while (true){
            int ge = money % 10;
            str = ge + str;
            money /= 10;
            if(money ==0){
                break;
            }
        }
        System.out.println(str);
    }
}
